package com.qfjg.feigns;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;

import java.util.List;

//@FeignClient(value = "yt-auth-qf")
@FeignClient(value = "yt-auth-jg")
public interface AuthService {
//    @PostMapping("/yt-auth-qf/addressbook/roleSelfAllChildren")
@PostMapping("/yt-auth-jg/addressbook/roleSelfAllChildren")
    List<RoleInfo> roleSelfAllChildren(@RequestHeader("ct") String ct, @RequestHeader("_t") String _t);
//    @PostMapping("/yt-auth-jg/addressbook/roleByIds")
//    List<RoleInfo> roleByIds(@RequestBody RolesParam param, @RequestHeader("ct") String ct, @RequestHeader("_t") String _t);
//
//    @PostMapping("/yt-auth-jg/addressbook/roleByChild")
//    List<RoleInfo> roleByChild(@RequestBody RoleParentParam param, @RequestHeader("ct") String ct, @RequestHeader("_t") String _t);
//
//    @PostMapping("/yt-auth-jg/addressbook/roleAll")
//    List<RoleInfo> roleAll(@RequestHeader("ct") String ct, @RequestHeader("_t") String _t);

}
